package com.test.mapper;

import com.test.pojo.FoodType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FoodTypeMapper {

    List<FoodType> getAllFoodType();

    int updateFoodType(FoodType foodType);

    int deleteFoodType(@Param("typeId") int typeId);

    int addFoodType(FoodType foodType);

    List<FoodType> serachFoodType(@Param("typeName") String typeName);

    FoodType getFoodTypeByID(@Param("typeId") int typeId);
}
